
<template>
<el-container>
    <el-aside width="200px">
        <NotLoginMenu></NotLoginMenu>
    </el-aside>
    <el-main style="padding:0px">
      <div class="card">
        <div>
          <el-row>
            <el-col :span="12">
              <el-card class="box-card">
                <div slot="header" class="clearfix">
                  <span>官网简介--</span>
                </div>
                <div v-for="(config,index) in findconfig" class="text item" style="height: 50px;">
                <span v-if="config.id==1"> {{ config.id }}:  {{ config.value }}</span>
                  <span v-if="config.id==2"> {{ config.id }}:  {{ config.value }}</span>
                  <span v-if="config.id==3"> {{ config.id }}:  {{ config.value }}</span>
                  <span v-if="config.id==4"> {{ config.id }}:  {{ config.value }}</span>
                </div>
              </el-card>
            </el-col>
            <el-col :span="12">
              <el-card class="img-card">
                <img src="https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png" class="image">
                <div style="padding: 14px;">
                  <span>最专业的企业日程</span>
                </div>
              </el-card>
            </el-col>
          </el-row>
        </div>
      </div>
    </el-main>
</el-container>
</template>
<script>
import NotLoginMenu from '@/components/menu/NotLoginMenu.vue'
import Index from '@/components/Index.vue'
import instance from "@/utlis/request";
export default {
    name: 'IndexView',
    components: {
        NotLoginMenu,
        Index,
    },
  data(){
    return {
      findconfig:{},
    };
  },
  created:function (){
    this.initDate();
  },
  methods:{
    initDate:function (){
      instance.get("/Manage/FindUserConfig").then(res=>{
        this.findconfig=res.data.data
        console.log(res.data.data)
      })
    }
  }
}
</script>

<style scoped>
.box-card {
    margin-top: 20px;
    margin-left: 80px;
}

.img-card {
    width: 400px;
    height: 400px;
    margin-top: 50px;
    margin-left: 100px;
}
</style>

<style>
.text {
    font-size: 14px;
}

.item {
    margin-bottom: 18px;
}

.clearfix:before,
.clearfix:after {
    display: table;
    content: "";
}

.clearfix:after {
    clear: both
}

.box-card {
    width: 480px;
    height: 500px;
}
</style>
